<!--<div>-->
    <!--<script>-->
        <!--$('.left').append('<div class="modal"></div>')-->
    <!--</script>-->
    <!--<div class="content_title">-->
        <!--<span>作者管理>>{{msg}}</span>-->
        <!--<button class="common_btn cancel" ng-click="cancel()">返回</button>-->
    <!--</div>-->

    <!--<div class="content_main">-->
        <!--<table class="table ad_add_table">-->
            <!--<tr>-->
                <!--<td>-->
                    <!--<i class="redStar">*</i>-->
                    <!--作者名称:-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" id="writer_name" class="title_input" ng-model="data.name">-->
                <!--</td>-->
            <!--</tr>-->

            <!--<tr>-->
                <!--<td>-->
                    <!--头像:-->
                <!--</td>-->
                <!--<td id="author_col_icon">-->
                    <!--<i class="redStar">140*140</i>-->
                    <!--<input type="file" autocomplete="off" id="upload_author_icon" class="file_input"-->
                           <!--accept="image/jpeg,image/png,image/gif">-->
                <!--</td>-->
            <!--</tr>-->

            <!--<tr>-->
                <!--<td>简介:</td>-->
                <!--<td>-->
                    <!--<textarea name="" id="" ng-model="data.summary"></textarea>-->
                <!--</td>-->
            <!--</tr>-->

            <!--<tr>-->
                <!--<td>-->
                    <!--归属:-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select class="select" id="writer_type1" ng-model="select1" ng-options="s.name for s in list">-->
                        <!--<option value=""></option>-->

                    <!--</select>-->
                    <!--<select class="select" id="writer_type2" ng-model="select2"-->
                            <!--ng-options="s.name for s in select1.child">-->
                        <!--<option value=""></option>-->
                    <!--</select>-->
                    <!--<select class="select" id="writer_type3" ng-model="select3"-->
                            <!--ng-options="s.value for s in select2.child">-->
                        <!--<option value=""></option>-->
                    <!--</select>-->
                <!--</td>-->
            <!--</tr>-->

            <!--<tr>-->
                <!--<td>-->
                    <!--属性:-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="radio" name="author_type" value="0" id="writer_add_type1">-->
                    <!--<label for="writer_add_type1" class="common_label">文章</label>-->

                    <!--<input type="radio" name="author_type" value="1" id="writer_add_type2">-->
                    <!--<label for="writer_add_type2" class="common_label">视频</label>-->
                <!--</td>-->
            <!--</tr>-->
            <!--<tr>-->
                <!--<td>推荐:</td>-->
                <!--<td>-->
                    <!--<select id="author_tag" class="select">-->
                        <!--<option value="1">否</option>-->
                        <!--<option value="0">是</option>-->
                    <!--</select>-->
                <!--</td>-->
            <!--</tr>-->

            <!--<tr>-->
                <!--<td>排序值:</td>-->
                <!--<td>-->
                    <!--<input type="number" class="num_input" ng-model="data.weight">-->
                <!--</td>-->
            <!--</tr>-->

            <!--<tr>-->
                <!--<td>-->
                    <!--<i class="redStar">*</i>-->
                    <!--是否显示:-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="radio" id="writer_type_has" value="0" name="author_status" checked>-->
                    <!--<label for="writer_type_has" class="common_label">显示</label>-->

                    <!--<input type="radio" id="writer_type_none" value="1" name="author_status">-->
                    <!--<label for="writer_type_none" class="common_label">隐藏</label>-->
                <!--</td>-->
            <!--</tr>-->
        <!--</table>-->

        <!--<div class="preserveCancel">-->
            <!--<button class="preserve_btn" ng-click="authorPost()">保存</button>-->
            <!--<button class="cancel_btn" ng-click="videoCancel()">取消</button>-->
        <!--</div>-->
    <!--</div>-->

<!--</div>-->

<div>
    <link rel="stylesheet" href="code/css/common.css">
    <link rel="stylesheet" href="code/css/index.css">
    <script>
        $('.left').append('<div class="modal"></div>')
    </script>
    <style>
        .col-sm-5 {
            width: 100%;
        }
        .layui-layer-content{
            background-color: #393D49;
            color: #fff;
        }
        #wrapper{
            background-color: #F3F3F5;
        }
        .up_load{
            width: 100%;
            display: -webkit-box;
            padding-top: 20px;
        }
        .up_load li{
            -webkit-box-flex: 1;
        }
        .up_load li img{
            width: 100px;
        }
        .upfilebox {
            position: relative;
        }
        .upfilebox input {
            width: 100px;
            height: 45px;
            position: relative;
            z-index: 9;
            opacity: 0;
        }
        .upfilebox label {
            position: absolute;
            display: inline-block;
            color: #fff;
            width: 125px;
            height: 45px;
            line-height: 36px;
            text-align: center;
            top: 0px;
            left: 0px;
            font-size: 16px;
            border-radius: 3px;
        }
        .layui-layer-title{
            display: none;
        }

    </style>
    <div class="content_title">
        <span>作者管理>>{{msg}}</span>
        <button ng-show="showBack" class="common_btn cancel" ng-click="cancel()">返回</button>
    </div>

    <div class="ad_content">
        <table class="table video_add_table">
            <tr>
                <td>
                    <i class="redStar">*</i>
                    <h5>作者名称:</h5>
                </td>
                <td>
                    <input type="text" class="common_input" id="writer_name"  ng-model="data.name">
                </td>
            </tr>
            <tr>
                <td>
                    <h5>头像:</h5>
                </td>
                <td id="video_col_icon">
                    <ul class="up_load">
                        <li>
                            <div class="upfilebox">
                                <input type="file"  id="upload_author_icon" accept="image/jpeg,image/png,image/gif"/>
                                <!--<label >上传图片</label>-->
                                <label class="btn btn-success " type="button"><i class="fa fa-upload"></i>&nbsp;&nbsp;<span class="bold">上传头像</span>
                                </label>
                            </div>
                        </li>
                        <li>
                            <img src="{{data.icon}}" ng-show="data.icon" alt="" ng-click="showPhotos(data.icon)">
                        </li>
                    </ul>
                    <P class="redStar">140*140</P>
                </td>
            </tr>


            <tr>
                <td><h5>简介:</h5></td>
                <td>
                    <textarea name="" id="" cols="30" rows="10" ng-model="data.summary"></textarea>
                </td>
            </tr>



            <tr>
                <td>
                    <i class="redStar">*</i>
                    <h5>归属:</h5>
                </td>
                <td>
                    <select class="select"  id="writer_type1" ng-model="select1" ng-options="s.name for s in list">
                        <option value=""></option>
                    </select>
                    <select class="select" name="" id="writer_type2" ng-model="select2"
                            ng-options="s.name for s in select1.child">
                        <option value=""></option>
                    </select>
                    <select class="select" id="writer_type3" ng-model="select3"
                            ng-options="s.value for s in select2.child">
                        <option value=""></option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><H5>属性:</H5></td>
                <td>
                    <input type="radio" name="author_type" value="0" id="writer_add_type1">
                    <label for="writer_add_type1" class="common_label">文章</label>
                    <input type="radio" name="author_type" value="1" id="writer_add_type2">
                    <label for="writer_add_type2" class="common_label">视频</label>
                </td>
            </tr>
            <tr>
                <td><H5>推荐:</H5></td>
                <td>
                    <select class="select" id="author_tag" >
                        <option value="1">否</option>
                        <option value="0">是</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><H5>排序值:</H5></td>
                <td>
                    <input type="number" class="id_input" ng-model="data.weight">
                </td>
            </tr>

            <tr>
                <td>
                    <i class="redStar">*</i>
                    <H5>是否显示:</H5>
                </td>
                <td>
                    <input type="radio" id="writer_type_has" value="0" name="author_status" checked>
                    <label for="writer_type_has" class="common_label">显示</label>

                    <input type="radio" id="writer_type_none" value="1" name="author_status">
                    <label for="writer_type_none" class="common_label">隐藏</label>
                </td>
            </tr>
        </table>

        <div class="preserveCancel">
            <button class="preserve_btn" ng-click="authorPost()">保存</button>
            <button class="cancel_btn" ng-click="videoCancel()">取消</button>
        </div>
    </div>
</div>
